package org.learn.test;

public class HomeWork03 {
    public static void main(String[] args) {
        int year1 = 2000;
        if ((year1 % 4 == 0 & year1 % 100 != 0)
                | (year1 % 400 == 0))
        {
            System.out.println(year1 + "年是闰年");
        } else {
            System.out.println(year1 + "年不是闰年");
        }
    }
}
